package com.zpark.servlet;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @PackageName: com.zpark.servlet
 * @ClassName: ServletDemo05
 * @Description:
 * @author: RZS
 * @date: 2023/3/6  15:04
 */
// 目录匹配    *:表示任意字符
@WebServlet("/user/*")
public class ServletDemo05 extends HttpServlet {
    @Override
    protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        resp.getWriter().println("<h1>this is ServletDemo05</h1>");
    }
}
